package danlib;

import java.awt.*;

public class Skin2D
{
	Graphics2D g2;
	
	Color borderColor = new Color( 0, 0, 0 );
	Color backgroundColor = new Color( 255, 255, 255 ); 
	Color textColor = new Color( 128, 128, 255 );
	
	public Skin2D( Graphics2D g2 )
	{
		this.g2 = g2;
		g2.setStroke( new BasicStroke( 2 ) );
	}
	
	public void setStrokeWidth( int w )
	{
		g2.setStroke( new BasicStroke( w ) );
	}
	
	public void drawRect( int x, int y, int width, int height )
	{
		g2.setColor( backgroundColor );
		g2.fillRect( x, y, width, height );
		g2.setColor( borderColor );
		g2.drawRect( x, y, width, height );
	}
	
	public void drawOval( int x, int y, int width, int height )
	{
		g2.setColor( backgroundColor );
		g2.fillOval( x, y, width, height );
		g2.setColor( borderColor );
		g2.drawOval( x, y, width, height );
	}
	
}